package com.ssy.lingxi.member.merchant.model.constant;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 根据订单，区分会员的类型
 * @author 万宁
 * @version 2.0.0
 * @date 2020-10-24
 */
public enum MemberTradeTypeEnum {
    /**
     * 买方（采购会员）- 1
     */
    BUYER(1, "采购会员"),

    /**
     * 卖方（供应会员） - 2
     */
    SELLER(2, "供应会员");

    MemberTradeTypeEnum(Integer typeEnum, String typeName) {
        this.typeEnum = typeEnum;
    }

    private final Integer typeEnum;

    public Integer getTypeEnum() {
        return typeEnum;
    }

    public String getTypeName() {
        return LanguageHolder.getName(this.getClass(), this.getTypeEnum());
    }
}
